package chapter8;

public class Time1Test {

	public static void main(String[] args) {

		Time1 time = new Time1();

		System.out.printf("The initial universal time is: ");
		System.out.println(time.toStringUniversal());
		System.out.printf("The initial standard time is: ");
		System.out.println(time.toString());
		System.out.println();

		time.setTime(13, 27, 6);
		System.out.print("Universal time after setTime is: ");
		System.out.println(time.toStringUniversal());
		System.out.print("Standard time after setTime is: ");
		System.out.println(time.toString());
		System.out.println();

		time.setTime(99, 99, 99);
		System.out.print("After attempting invalid settings: ");
		System.out.print("Universal time: ");
		System.out.println(time.toStringUniversal());
		System.out.print("Standard time after setTime is: ");
		System.out.println(time.toString());
		System.out.println();

	}
}
